package 第一题;

public class HomeWork2 implements Runnable{
    @Override
    public void run() {
        for (int i = 0; i <50 ; i++) {
            System.out.println("new");
        }
    }

    public static void main(String[] args) {
        HomeWork2 runnable = new HomeWork2();
        Thread thread = new Thread(runnable);
        thread.start();
        for (int i = 0; i <100 ; i++) {
            System.out.println("main");
        }
    }
}
